package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 井盖当前状态表
 *
 * @author code-generate
 * @date 2021-09-06
 */
@Data
@DbTable(tableName = "t_manhole_cur")
public class ManholeCur extends BaseEntity {

    @DbTableField(columnName = "c_device_id", dbType = DbTypeEnum.INTEGER)
    public Integer deviceId;

        /**
     * 终端编号
     */
    @DbTableField(columnName = "c_device_code", dbType = DbTypeEnum.VARCHAR)
    public String deviceCode ;

    /**
     * 终端类型: d2-井盖锁 d3-监测终端
     */
    @DbTableField(columnName = "c_device_type", dbType = DbTypeEnum.VARCHAR)
    public String deviceType ;

    /**
     * 电池状态：0-正常 1-低电
     */
    @DbTableField(columnName = "c_voltage_status", dbType = DbTypeEnum.INTEGER)
    public Integer voltageStatus ;

    /**
     * 电压值：3.5V
     */
    @DbTableField(columnName = "c_voltage", dbType = DbTypeEnum.FLOAT)
    public Float voltage ;

    /**
     * 锁状态：0-关 1-开
     */
    @DbTableField(columnName = "c_lock_status", dbType = DbTypeEnum.INTEGER)
    public Integer lockStatus ;

    /**
     * 倾斜状态：0-正常 1-倾斜
     */
    @DbTableField(columnName = "c_lean_status", dbType = DbTypeEnum.INTEGER)
    public Integer leanStatus ;

    /**
     * 倾斜角度值
     */
    @DbTableField(columnName = "c_lean_value", dbType = DbTypeEnum.INTEGER)
    public Integer leanValue ;

    /**
     * 上报时间
     */
    @DbTableField(columnName = "c_reportTime", dbType = DbTypeEnum.VARCHAR)
    public String reportTime ;

    /**
     * 基站小区标识
     */
    @DbTableField(columnName = "c_cellId", dbType = DbTypeEnum.VARCHAR)
    public String cellId ;

    /**
     * 物理小区标识
     */
    @DbTableField(columnName = "c_pci", dbType = DbTypeEnum.INTEGER)
    public Integer pci ;

    /**
     * 信号接收功率
     */
    @DbTableField(columnName = "c_rsrp", dbType = DbTypeEnum.INTEGER)
    public Integer rsrp ;

    /**
     * 信号接收质量
     */
    @DbTableField(columnName = "c_rsrq", dbType = DbTypeEnum.INTEGER)
    public Integer rsrq ;

    /**
     * 接收信号强度
     */
    @DbTableField(columnName = "c_rssi", dbType = DbTypeEnum.INTEGER)
    public Integer rssi ;

    /**
     * 信噪比
     */
    @DbTableField(columnName = "c_snr", dbType = DbTypeEnum.INTEGER)
    public Integer snr ;

    /**
     * 当前频段：5-电信 8-移动
     */
    @DbTableField(columnName = "c_band", dbType = DbTypeEnum.INTEGER)
    public Integer band ;

    /**
     * 阈值，取值范围：0-65的整数。需要修改终端倾斜阈值时，可返回该值。		阈值为以下值时，进行特殊处理，灵敏度提高：		0 - 阈值5°		1 - 阈值7°		2 - 阈值10°		3 - 阈值15°		4 - 阈值20°		5 - 阈值30°		6 - 阈值40°		7 - 阈值50°		8 - 阈值60°
     */
    @DbTableField(columnName = "c_threshold", dbType = DbTypeEnum.INTEGER)
    public Integer threshold ;

    @DbTableField(columnName = "c_iot_code", dbType = DbTypeEnum.VARCHAR)
    public String iotCode;

    /**
     * 创建时间
     */
//    @DbTableField(columnName = "c_db_create_date", dbType = DbTypeEnum.TIMESTAMP)
    public LocalDateTime dbCreateDate ;

    /**
     *   对应t_sys_user.c_id
     */
//    @DbTableField(columnName = "c_db_create_id", dbType = DbTypeEnum.INTEGER)
    public Integer dbCreateId ;

    /**
     * 最后更新时间
     */
//    @DbTableField(columnName = "c_db_last_update_date", dbType = DbTypeEnum.TIMESTAMP)
    public LocalDateTime dbLastUpdateDate ;

    /**
     *  对应t_sys_user.c_id
     */
//    @DbTableField(columnName = "c_db_last_update_id", dbType = DbTypeEnum.INTEGER)
    public Integer dbLastUpdateId ;


}
